package cn.uniqueinfo.dp.controller;

import lombok.extern.slf4j.Slf4j;
import cn.uniqueinfo.dp.controller.base.BaseController;
import cn.uniqueinfo.dp.service.ITableService;
import cn.uniqueinfo.dp.vo.TableVO;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;

/**
 * @author:朱元勋
 * @mail:395910063@qq.com
 * @date:2019-01-22 15:49:52
 * @description:物理表信息
 */
@Slf4j
@Controller
@RequestMapping(value = "/table")
public class TableController extends BaseController<TableVO> {
    private ITableService service;

    public TableController(ITableService service) {
        this.service = service;
        this.baseService = service;
        this.ctlName = "table";
        this.tipName = "物理表信息";
    }

    /** 表字段信息 */
    @GetMapping(value = "/field")
    public ModelAndView field() {
        this.checkPermission("field", "field");
        return new ModelAndView("/" + ctlName + "/field");
    }
}
